<div class="box box-solid box-primary">
	<!-- lastest jobs -->
    <div class="box-header">
		<h3 class="box-title">Latest Jobs</h3>
	</div>
	<div class="box-body">
		<div class="row">
					<div class="col-xs-12 conatain-lastest-job">
						<table class="table table-hover">
							<?php
			                    $i = 1;
								foreach($latest_jobs as $latest_job){
									$job_title=$latest_job->job_title;
									$job_key=$latest_job->job_key;	
			                        $company_name = $latest_job->company_name;
			                        $date_avaliable = $latest_job->date_available;
			                        $date_create= $latest_job->job_create_date;
									
			                      
							?>
								<tr class="job-lastest-title-<?php echo $i%2==1?"white":"gray"; ?>">
	    							
	    							<td>
	    								<a href="<?php echo base_url();?>jobs/detail/<?php echo $job_key;?>" class="underline-">
		    								<h4 style="text-transform: uppercase">
	                                    		<?php echo $job_title;?>
	                                    		<?php
	                                    			if($latest_job->is_featured_job == "YES" && $latest_job->featured_job_status==1){
														echo "&nbsp;<span class='label label-warning orverried-label'> Ads</span>";
													}
	                                    		 ?>
	                                		</h4>
	                                		<span class="job-lastest-location">
				                                    Company name <?php echo $company_name; ?> - Phnom Penh 
				                                    <span class="job-priority">
				                                    	<?php
														if(strtotime($date_create) > strtotime("-1 day")) {
														 echo "- <b class='post-today'> Posted today</b>";
														}
														?>
				                                    	
				                                    </span>
				                            </span>
                                		</a> 
	    							</td>
	    							<td><b class="pull-right" style="color: red;"><br /><?php echo date("d-M-Y", strtotime($date_avaliable)); ?></b></td>
	    							
	    						</tr>
    						<?php
			                    $i++;
								}
							?>
						</table>
    						
					</div>
		</div>    
	</div><!-- /.box-body -->
</div><!-- /. end lastest job -->